import request from '@/utils/request'

export function getSyncRules(params) {
  return request({
    url: 'api/syncruleconf/page',
    method: 'get',
    params
  })
}
export function del(ids) {
  return request({
    url: 'api/syncruleconf',
    method: 'put',
    data: ids
  })
}
export function edit(data) {
  return request({
    url: 'api/syncruleconf',
    method: 'put',
    data
  })
}
export function add(data) {
  return request({
    url: 'api/syncruleconf',
    method: 'post',
    data
  })
}
export function updateRules(data) {
  return request({
    url: 'api/scanmetadata/syncConfIdChange',
    method: 'post',
    data
  })
}

export default { getSyncRules, del, edit, add, updateRules }
